import Vue from 'vue'
import VueRouter from 'vue-router'

import Chatting from './views/Chatting'
import Chatting2 from './views/Chatting2'


Vue.use(VueRouter);

const routes = [
	{ path: '/', redirect: '/Chatting' }
    ,{
        path:'/Chatting',
        component: Chatting
    },{
        path:'/Chatting2',
        component: Chatting2
    }
];




const router = new VueRouter({
	routes
})


const originalPush = VueRouter.prototype.push
   VueRouter.prototype.push = function push(location) {
   return originalPush.call(this, location).catch(err => err)
}

export default router;